<?php
echo CHtml::beginForm('', 'post', array(
    'id'    => 'contact-form',
    'class' => 'form',
));
?>

<fieldset>
    <ul>
        <li>
            <?php
            $attr = 'summary';
            echo CHtml::activeLabel($model, $attr, array('class' => 'desc'));
            ?>

            <div>
            <?php
            $this->widget('ext.ckeditor.CKEditorWidget', array(
                'model'     => $model,
                'attribute' => $attr,
                'config'    => array(
                    'height'  => 300,
                )
            ));
            ?>
            </div>
        </li>
        
        <?php
        $this->renderPartial('_data', array(
            'model' => $model,
            'infoAttribute' => $infoAttribute,
        ));
        ?>
        
        <li class="control">
            <ul id="icons" class="ui-widget">
                <li id="btn-add"
                    title="<?php echo Yii::t('DadminModule.app', 'add_short') ?>"
                    class="ui-state-default ui-corner-all"
                    style="float: right;">
                    <span class="ui-icon ui-icon-plusthick"></span>
                </li>
            </ul>
        </li>

        <li style="text-align: center;">
        <?php
        $label = Yii::t('DadminModule.app', 'save_u');
        echo CHtml::submitButton($label, array(
            'class' => 'ui-state-default ui-corner-all ui-button',
        ));
        
        $label = Yii::t('DadminModule.app', 'reset_u');
        echo CHtml::button($label, array(
            'id'    => 'btn-reset',
            'class' => 'ui-state-default ui-corner-all ui-button',
            'style' => 'margin:0 10px;',
        ));
        
        $label = Yii::t('DadminModule.app', 'cancel_u');
        echo CHtml::button($label, array(
            'class' => 'ui-state-default ui-corner-all ui-button btn-cancel'
        ));
        ?>
        </li>
    </ul>
</fieldset>

<?php echo CHtml::endForm(); ?>